package com.lzb.musicplayer.activity;

import android.os.Bundle;
import android.view.View;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

import com.lzb.musicplayer.BaseAc;
import com.lzb.musicplayer.R;
import com.lzb.musicplayer.databinding.ActivitySettingBinding;

public class SettingActivity extends BaseAc<ActivitySettingBinding> implements View.OnClickListener {


    @Override
    protected int onCreate() {
        return R.layout.activity_setting;
    }

    @Override
    protected void initView() {
        mDataBinding.ivSettingBack.setOnClickListener(view -> getOnBackPressedDispatcher().onBackPressed());

        mDataBinding.llInterface.setOnClickListener(this);
        mDataBinding.llPlaying.setOnClickListener(this);
        mDataBinding.llAudio.setOnClickListener(this);
        mDataBinding.llAbout.setOnClickListener(this);
        mDataBinding.llMyRingtone.setOnClickListener(this);
        mDataBinding.llFeedback.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        int id = view.getId();
        if (id == R.id.llInterface) {//界面与外观
            startActivity(InterfaceActivity.class);
        } else if (id == R.id.llPlaying) {//正在播放
            startActivity(PlayingActivity.class);
        } else if (id == R.id.llAudio) {//音频
            startActivity(AudioActivity.class);
        } else if (id == R.id.llAbout) {//关于
            startActivity(AboutActivity.class);
        } else if (id == R.id.llMyRingtone) {//我的铃声
            startActivity(MyRingtoneActivity.class);
        } else if (id == R.id.llFeedback) {//意见反馈
            startActivity(FeedbackActivity.class);
        }
    }

    @Override
    protected void initData() {

    }
}